<?php

/**
 * Class Weixin_service_module
 */
class Weixin_service_module extends CI_Module
{
    public $weixin_model;
    public $setting;

    public function __construct()
    {
        parent::__construct();
        $this->load->model('weixin.weixin_model');
        $this->load->model('expert.Expert_model');
        $this->setting = $this->weixin_model->db_get_setting();
        define('TOKEN',     @$this->setting['token']);
        define('APPID',     @$this->setting['appid']);
        define('APPSECRET', @$this->setting['appsecret']);

        $this->weixin_model->valid();
    }

    public function index()
    {
        echo <<<HTML
<p class="fun_tips">已将消息转发到多客服。无需设置。</p>
HTML;

    }
}